package com.wellwan.cloud.feignclient;

import com.wellwan.cloud.configuration.FeignConfiguration;
import com.wellwan.cloud.entity.User;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.netflix.feign.FeignClient;

/**
 * Copyright (C),微动天下
 * FileName: UserFeignClient
 * Author:   maokai
 * Date:     2020/2/24 11:35
 * Description:
 */
@FeignClient(name="microservice-provider-user",configuration = FeignConfiguration.class
//        ,
//        url = "" 可以配置
)
public interface UserFeignClient {
    @RequestLine("GET /{id}")
    User findById(@Param("id") Long id);
}
